﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyFeer.Lib.common;

namespace MyFeer.Widget.Grid.Cell
{
    public class CellModel
    {
        private CellStyle cellStyle=new CellStyle();
        private CellContent cellContent=new CellContent();
        private bool canEditor = true;

        
        
        private IntegerRect rect=new IntegerRect();
        public bool CanEditor
        {
            get { return canEditor; }
            set { canEditor = value; }
        }
        /// <summary>
        /// 左边位置
        /// </summary>
        public int Left
        {
            get { return this.rect.Left; }
            internal set { this.rect.Left = value; }
        }
        public int Top
        {
            get { return this.rect.Top; }
            internal set { this.rect.Top = value; }
        }
        public int Width
        {
            get { return this.rect.Width; }
            internal set { this.rect.Width = value; }
        }
        public int Height
        {
            get { return this.rect.Height; }
            internal set { this.rect.Height = value; }
        }
        public CellStyle CellStyle
        {
            get { return cellStyle; }
            set { cellStyle = value; }
        }
        public CellContent CellContent
        {
            get { return cellContent; }
            set { cellContent = value; }
        }
    }
}
